Skip to content

deps: add 3-day release-age cooldown to shared Renovate preset (first-party exempt)#31

Merged
ANcpLua merged 1 commit into
mainfrom
harden/renovate-minimum-release-age
Jul 6, 2026
Merged

deps: add 3-day release-age cooldown to shared Renovate preset (first-party exempt)#31
ANcpLua merged 1 commit into
mainfrom
harden/renovate-minimum-release-age

Conversation

@ANcpLua

@ANcpLua ANcpLua commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What

Adds a supply-chain cooldown to the shared Renovate baseline (default.json), which every ANcpLua/Qyl repo extends via github>ANcpLua/github-settings-automation.

"minimumReleaseAge": "3 days",
"internalChecksFilter": "strict",

Plus a first-party exemption packageRule so our own packages skip the wait:

{
  "matchDatasources": ["nuget"],
  "matchPackageNames": ["/^ANcpLua\\./", "/^Qyl\\./"],
  "minimumReleaseAge": "0"
}

Why

The preset auto-merges aggressively — patch, pin/digest, lockfile, npm devDep minor, and ~8 grouped families (roslyn, testing, otel, ms-extensions, ai-clients, meziantou, openapi, ancplua-sdk). config:best-practices does not add a release-age cooldown, so a freshly-published compromised or broken third-party version can auto-merge within minutes of release. A 3-day cooldown gives a bad upstream release time to be yanked/patched before it can land. internalChecksFilter: "strict" holds the PR until the age gate passes.

First-party ANcpLua.* / Qyl.* are exempt (minimumReleaseAge: "0") because we publish them and want cross-repo propagation to stay immediate.

Scope

One-line change to the fleet's single source of truth → hardens every repo that extends this preset at once.

Verification

  • renovate-config-validator default.json"Config validated successfully"
  • JSON parses; 20 packageRules; cooldown + exemption both present.

🤖 Generated with Claude Code

Harden the shared Renovate baseline against supply-chain risk. The preset
auto-merges a lot (patch, digest, npm devDep minor, and ~8 grouped families),
so a freshly-published compromised or broken version could auto-merge within
minutes. config:best-practices does not set a cooldown on its own.

- minimumReleaseAge: "3 days" + internalChecksFilter: "strict" so a bad
  upstream release has time to be yanked before it can auto-merge.
- First-party exemption (ANcpLua.* + Qyl.*, nuget): minimumReleaseAge "0"
  so our own releases still propagate across the fleet immediately.

Validated with renovate-config-validator: "Config validated successfully".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ANcpLua ANcpLua merged commit f747ce0 into main Jul 6, 2026
3 checks passed
@ANcpLua ANcpLua deleted the harden/renovate-minimum-release-age branch July 6, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant